/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package carcassonne.gameplay.listObjects;

import carcassonne.initialize.XmlParser;
import org.w3c.dom.Element;

/**
 *
 * @author tylerb
 */
public class GameTile {
    private int id;
    private String tileType;
    
    public GameTile(Element el) {
        
        this.setId(Integer.parseInt(XmlParser.getIdValue(el)));
        this.setTileType(XmlParser.getTextValue(el,"tileType"));
        //System.out.println(this.toString());
        
    }
    
    public GameTile() {
        
    }
    
    public String toString() {
        String ret = "Id is "
                   + this.getId() 
                   + "\n"
                   + "Tile Type is "
                   + this.getTileType();

        return ret;
    } 

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    public String getTileType() {
        return tileType;
    }

    public void setTileType(String tileType) {
        this.tileType = tileType;
    }

}
